package com.css.zfzx.fwsjcj.modules.taskmanage.taskfrom.service;

import cn.afterturn.easypoi.excel.entity.ImportParams;
import com.css.zfzx.fwsjcj.modules.analysis.vo.AnalysisQueryVo;
import com.css.zfzx.fwsjcj.modules.taskmanage.taskfrom.entity.FwNoctiyHouseEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface NoCityTaskFromService {

    void saveForm(FwNoctiyHouseEntity fwNoctiyHouseEntity, String type);
    FwNoctiyHouseEntity findNoCityById(String formId);

    List<FwNoctiyHouseEntity> findNoCitys();

    void subById(String id,String type);

    void deleteById(String id);

    void updNoCity(String type, FwNoctiyHouseEntity fwNoctiyHouseEntity);

    void spReason(String status, String reason, String formId);

    // 根据省市县查询提交获取数量
    long count(AnalysisQueryVo analysisQueryVo);

    //根据省市县查询审核通过获取总面积;
    int areaCount(AnalysisQueryVo analysisQueryVo);

    // 更新
    void update(FwNoctiyHouseEntity fwNoctiyHouseEntity);

    //根据建筑名称模糊查
    List<FwNoctiyHouseEntity> buildingByBuilding(String buildingName);

    /**
     * 导出
     */
    void export(List<String> idList, HttpServletResponse response);

    /**
     * 查询图片地址
     */
    List<FwNoctiyHouseEntity> findImageURL(List<String> idList);

    String importCityTask(MultipartFile file,ImportParams params, String taskName, String taskId);

    String findByFwId(String fwId);
}
